package com.zjq.designpatterns.struct.decorator.code.v1;/*
 * 版权信息: 北京千⾥马网信科技有限公司</br>
 * Copyright ©2008-2018. All rights reserved. 京ICP备16007318号
 */

/**
 * @author jessie
 * @version 1.0
 * @date 2021/1/22
 */
public class Test {
    public static void main(String[] args) {
        Battercake battercake = new Battercake();
        System.out.println(battercake.getDescription()+" 销售价格："+battercake.cost());

        Battercake battercake2 = new BattercakeWithEgg();
        System.out.println(battercake.getDescription()+" 销售价格："+battercake2.cost());

        Battercake battercake3 = new BattercakeWithEggSausage();
        System.out.println(battercake.getDescription()+" 销售价格："+battercake3.cost());
    }
}
